package com.t.bricks.bussiness.db.entity.freightruledetail;

import io.swagger.annotations.ApiModelProperty;

import com.t.bricks.bussiness.db.entity.freightruledetail.base.FreightRuleDetailBase;

/**
 * 运费规则详情'FreightRuleDetail'表扩展实体类
 * 注意:可根据需要创建不同的多个扩展实体类,而不是把所有的扩展属性都集中到一个类中
 * @author HuangXinBian
 */
public class FreightRuleDetail extends FreightRuleDetailBase {
	
	private static final long serialVersionUID = -1L;// 使用rmi时需修改
	
	/**
	 * 状态(枚举,1:启用;2:关闭)
	 */
	@ApiModelProperty(value="状态(枚举,1:启用;2:关闭)", example="")
	private String sStateText;

	/**
	 * 取 状态(枚举,1:启用;2:关闭)
	 * @return StateText 状态(枚举,1:启用;2:关闭)
	 */
	public String getsStateText() {
		return this.sStateText;
	}

	/**
	 * 设置 状态(枚举,1:启用;2:关闭)
	 * @param sStateText 状态(枚举,1:启用;2:关闭)
	 */
	public void setsStateText(String sStateText) {
		this.sStateText = sStateText;
	}

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return FreightRuleDetail
	 */
	public static FreightRuleDetail copy(FreightRuleDetail source) {
		if (null == source) {
			return null;
		}
		
		FreightRuleDetail target = new FreightRuleDetail();
		target.setuId(source.getuId());
		target.setsRuleId(source.getsRuleId());
		target.setsArea(source.getsArea());
		target.setiSize(source.getiSize());
		target.setmValue(source.getmValue());
		target.setiSizeFollow(source.getiSizeFollow());
		target.setmValueFollow(source.getmValueFollow());
		target.setsMemo(source.getsMemo());
		target.setsCreator(source.getsCreator());
		target.setdCreateDate(source.getdCreateDate());
		target.setsModifieder(source.getsModifieder());
		target.setdModifiedDate(source.getdModifiedDate());
		target.setiState(source.getiState());
		target.setiIndex(source.getiIndex());
		target.setiVersion(source.getiVersion());
		target.setsStateText(source.getsStateText());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return FreightRuleDetail
	 */
	@Override
	public FreightRuleDetail clone() {
		return copy(this);
	}
	
}
